using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.ComponentModel;

namespace mdv.wssSchemaExplorer.WSS
{
    public class wssViews
    {
        public wssViews()
        {
        }
        public wssViews(XmlNode node)
            : this()
        {
            if (node.HasChildNodes)
            {
                _views = new List<wssView>();
                foreach (XmlNode xn in node)
                {
                    if (xn.Name == "View")
                    {
                        wssView v = new wssView(xn);
                        _views.Add(v);
                    }
                }
            }
        }
        #region Non-Designer Properties
        private List<wssView> _views;
        [Browsable(false)]
        public List<wssView> Views
        {
            get { return _views; }
        }
        #endregion
        public override string ToString()
        {
            return "Views";
        }
    }
}